package com.erp.order.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import com.ruoyi.common.core.web.oldDomain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 订单延伸业务对象 erp_seller_order_extend
 *
 * @author erp
 * @date 2023-07-11
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ErpSellerOrderExtendBo extends BaseEntity {

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 订单号
     */
    @NotNull(message = "订单号不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long orderId;

    /**
     * 真实物流费用
     */
    @NotBlank(message = "真实物流费用不能为空", groups = { AddGroup.class, EditGroup.class })
    private String realityLogisticsPrice;

    /**
     * 其他物流费用
     */
    @NotBlank(message = "其他物流费用不能为空", groups = { AddGroup.class, EditGroup.class })
    private String otherLogisticsPrice;

    /**
     * 国际运单号
     */
    @NotBlank(message = "国际运单号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String intlTrackingNo;

    /**
     * 国际物流运费凭证
     */
    @NotBlank(message = "国际物流运费凭证不能为空", groups = { AddGroup.class, EditGroup.class })
    private String logisticsProof;

    /**
     * 物流状态
     */
    private String logisticsType;

    private Integer isCainiao;

    /**
     * 退返运费
     */
//    @NotBlank(message = "退返运费不能为空", groups = { AddGroup.class, EditGroup.class })
    private String returnFreight;

    /**
     * 退返运费状态 0-未退运费 1-已退运费
     */
    private String returnFreightStatus;

    /**
     * 乐观锁
     */
    @NotBlank(message = "乐观锁不能为空", groups = { AddGroup.class, EditGroup.class })
    private String revision;

    /**
     * 是否入库(1:入库)
     */
    private Integer isWarehouse;

    /**
     * 纠纷截图
     */
    private String disputeImg;

    /**
     * 纠纷结果(0-无需退款;1-部分退款;2-全部退款
     */
    private Integer disputeResult;

    /**
     * 纠纷金额
     */
    private String disputeAmount;

    /**
     * 罚金
     */
    private String fine;
}
